package com.jjx.trainingapi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jjx.trainingapi.entity.po.DcCourse;
import com.jjx.trainingapi.entity.po.QuestionItem;
import com.jjx.trainingapi.entity.po.UserRecordFavorite;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LoveHuahua
 * @date 2022年05月24日 1:10
 * @description believe in yourself
 */
@Mapper
public interface UserRecordFavoriteMapper extends BaseMapper<UserRecordFavorite> {

    /**
     * 收藏列表
     *
     * @param param
     * @param userId
     * @return
     */
    List<QuestionItem> favoriteQuestionList(@Param("param") DcCourse param, @Param("userId") int userId);
}